home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC-SIG: World of Games
/
PC-SIG World of Games (CDRM1080710) (1993).iso
/
1314
/
OBLITER8.BAS
< prev
next >
Wrap
BASIC Source File
|
1988-02-01
|
842b
|
27 lines
10 '---------OBLITER8.BAS 1987------------
20 ' File Destruction Utility
30 ' Written by James Hill for the Public Domain
40 ' This program will NOT accept wildcards -
50 ' - would you want it to? Files "treated" with
60 ' OBLITER8 will be non-recoverable. Use care!
70 ' A compiled version is available. Compiled
80 ' using Microsoft QuickBASIC (trademark).
90 '-------------------------------------------
100 INPUT "enter the name of the file to be obliterated: ";N$
110 CT=0
120 OPEN "i",1,N$
130 PRINT INPUT$(1,#1);
140 CT=CT+1
150 IF EOF(1) THEN 170
160 GOTO 130
170 CLOSE #1
180 OPEN "o",1,N$
190 FOR X=1 TO CT
200 PRINT#1,"!";
210 NEXT X
220 PRINT
230 END
240 'SYSTEM (for the compiled version, line 140 was dropped
250 '(For the compiled version, line 140 was ommitted and
260 'line 150 was used instead.)